package com.micro.common.service.web.api;

import com.micro.common.service.web.domain.req.IdReq;
import com.micro.framework.starter.common.data.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @author system
 * @since 2025-04-07
 */
@RestController
@Api(value = "消息", tags = "消息")
@RequestMapping("/api/rocketmq")
public class RocketMqApi {

//    @Resource
//    private TradeProducer tradeProducer;
//    @ApiOperation(value = "新增字典数据")
//    @PostMapping("/test")
//    public Result<Void> add(){
//        tradeProducer.manualRecovery();
//        return Result.success();
//    }

    @ApiOperation(value = "test")
    @PostMapping("/test")
    public Result<String> test( ){
        return Result.success("OK");
    }

}
